package dbu;

import java.util.HashMap;
import java.util.Map;

//import dbu.csv.CsvFile;
import dbu.dbase.DBaseFile;

public class DbPool {

	private static Map<String, DbFile> files = new HashMap<String, DbFile>();
	
	public static DbFile getDbfile(String table) {
		if (!files.containsKey(table)) {
			files.put(table, 
					//new CsvFile(table));
					new DBaseFile(table));
		}
		return files.get(table);
	}
}
